﻿//
//  CpuOccupy.h
//  jimuv3
//
//  Created by chris on 2017/7/24.
//  Copyright © 2017年 Chris. All rights reserved.
//

#ifndef cpu_occupy_h
#define cpu_occupy_h

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

    uint64_t cpu_get_time_now_ms(void);      //获取当前系统时间(毫秒ms)

    int get_cpu_occupy(void);                        //CPU使用率x100
    int get_cpu_temperature(void);                  //CPU温度x1000

    int get_mem_info(int *vmSize, int *vmRss);      //单位 kb

#ifdef __cplusplus
}
#endif

#endif /* cpu_occupy_h */
